home *** CD-ROM | disk | FTP | other *** search
- on castNameOfSprite whichSprite
- return the name of cast the castNum of sprite whichSprite
- end
-
- on castNumOfSprite whichSprite
- return the castNum of sprite whichSprite
- end
-
- on relink whichCast, newFilename
- if the fileName of cast whichCast <> newFilename then
- putDebug("Relinking cast" && whichCast && "to" && newFilename)
- set the fileName of cast whichCast to newFilename
- else
- putDebug("Skipping relink of cast" && whichCast && "to" && newFilename)
- end if
- end
-
- on showSprite whichSprite
- set the visible of sprite whichSprite to 1
- end
-
- on hideSprite whichSprite
- set the visible of sprite whichSprite to 0
- end
-
- on showAllSprites
- repeat with i = 1 to 48
- set the visible of sprite i to 1
- end repeat
- end
-
- on hideAllSprites
- repeat with i = 1 to 48
- set the visible of sprite i to 0
- end repeat
- end
-
- on disableAllPuppets
- repeat with i = 1 to 48
- safePuppetSprite(i, 0)
- end repeat
- end
-
- on safePuppetSprite theSprite, theBoolean
- if (theBoolean = 1) and (the castNum of sprite theSprite = 0) then
- alert("Attempt to puppet unpopulated sprite" && theSprite && "at frame" && the frame)
- exit
- end if
- puppetSprite(theSprite, theBoolean)
- end
-
- on moveSpriteOffstage whichSprite
- if the castNum of sprite whichSprite = 0 then
- exit
- end if
- safePuppetSprite(whichSprite, 1)
- set the locH of sprite whichSprite to -1000
- updateStage()
- safePuppetSprite(whichSprite, 0)
- end
-